package com.xnyzc.lhy.finance.service.fegin.jpush;

import com.xnyzc.lhy.finance.service.fegin.bankcard.follback.FeginCheckBankCardFollBack;
import com.xnyzc.lhy.finance.service.fegin.jpush.follback.FeignJPushServiceImpl;
import com.xnyzc.lhy.resource.entity.jpush.BizResult;
import com.xnyzc.lhy.resource.entity.jpush.PushInfoEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author cuixioajian
 */
@FeignClient(name = "${feign.applicationName.resource}", fallback = FeignJPushServiceImpl.class)
public interface FeignJPushService {

    /**
     * 推送消息
     * @param pushInfoEntity
     * @return
     */
    @PostMapping("/push/message")
    BizResult pushMessage(@RequestBody PushInfoEntity pushInfoEntity);

}
